home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ Excite PAL 2.xpl < prev    next >
Text File  |  2000-08-07  |  2KB  |  96 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="4"
  4. "UIPATH"="Internet\Instant Messaging\Excite PAL"
  5. "NAME"="General Settings"
  6. "LANGUAGE"="VBScript"
  7. "VERSION"="1.08"
  8. "TEXT 1"="Automatically load Excite PAL when Windows is started"
  9. "TEXT 2"="Show only friends that are online (hide offline friends)"
  10. "TEXT 3"="Play sound when a message is received"
  11. "TEXT 4"="Play sound when a contact comes online"
  12. "DESCRIPTION 1"="You can use this plug-in to change the options for Excite PAL."
  13. "DESCRIPTION 2"="Excite PAL may be obtained at http://www.excite.com/communities/pal/home/."
  14. "AUTHOR"="Xteq Systems"
  15. "CONTACTURL"="http://www.xteq.com"
  16. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  17. "COMMENT 1"=" "
  18. "COMMENT 2"="Thanks to CptSiskoX for the settings and the idea."
  19.  
  20.  
  21. sV_Reg="HKEY_LOCAL_MACHINE\Software\Ubique\PAL\Path"
  22. sSec="Settings"
  23. sFile="pal.ini"
  24. sPath=""
  25. sV1="LaunchAtStartup"
  26. sV2="ShowOnlineOnly"
  27. sV3="BeepIM"
  28. sV4="BeepBuddy"
  29. Sub Plugin_Initialize 
  30.  sPath=RegReadValue(sV_Reg)
  31.  if isempty(sPath)=false then
  32.     sPath=sPath & "\" & sFile
  33.  
  34.     if fileexists(sPAth) then
  35.        s=IniReadValue(sPath,sSec,sV1)
  36.        if s="1" then SetUIElement 1,true
  37.  
  38.        s=IniReadValue(sPath,sSec,sV2)
  39.        if s="1" then SetUIElement 2,true
  40.  
  41.        s=IniReadValue(sPath,sSec,sV3)
  42.        if s="1" then SetUIElement 3,true
  43.  
  44.        s=IniReadValue(sPath,sSec,sV4)
  45.        if s="1" then SetUIElement 4,true
  46.     else
  47.        Disable
  48.     end if
  49.  else
  50.     Disable
  51.  end if
  52. End Sub
  53.  
  54.  
  55. Sub Plugin_CheckData(ElementIndex)
  56. End Sub
  57.  
  58.  
  59. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  60.  if GetUIElement(1)=true then
  61.     s="1"
  62.  else
  63.     s="0"
  64.  end if
  65.  Call IniWriteValue(sPath,sSec,sV1,s)
  66.  
  67.  if GetUIElement(2)=true then
  68.     s="1"
  69.  else
  70.     s="0"
  71.  end if
  72.  Call IniWriteValue(sPath,sSec,sV2,s)
  73.  
  74.  if GetUIElement(3)=true then
  75.     s="1"
  76.  else
  77.     s="0"
  78.  end if
  79.  Call IniWriteValue(sPath,sSec,sV3,s)
  80.  
  81.  if GetUIElement(4)=true then
  82.     s="1"
  83.  else
  84.     s="0"
  85.  end if
  86.  Call IniWriteValue(sPath,sSec,sV4,s)
  87.  
  88. End Sub
  89.  
  90.  
  91. Sub Plugin_Terminate 
  92. End Sub
  93.  
  94.  
  95.  
  96.